

<div >
    <form action="<?php echo url_for('quest/index')?>" method="post">
    <table id="lista">    
        <tbody>
            <?php echo $form ?>
        </tbody>    
    </table>

        <div>
            <input type="submit" name="getTable" value="Get Table" />
            <input type="submit" name="getChart" value="Get Chart" />
            <input type="submit" name="getBoth" value="Get Both" />
        </div> 

    </form>
</div>